package com.itboye.jmsfhz.data.model;

import java.util.ArrayList;

public class GoodsListModel {
/**
 * ["count"] => string(2) "12"                                         //符合条件的商品总数
    ["list"] => array(3) {
      [0] => array(6) {
        ["id"] => string(2) "50"                                    //商品id
        ["name"] => string(12) "可口可乐"                  //商品名称 
        ["total_sales"] => string(1) "0"                        //商品销量
        ["cate_id"] => string(1) "2"                               //商品类目
        ["img"] => string(77) "http://192.168.0.100/github/itboye_sunsun_php/index.php/Api/Picture/index?id="         //商品主图
        ["price"] => string(3) "1.0"                                //商品各规格最低价格
      }
... ...
      [9] => array(6) {
        ["id"] => string(2) "52"
        ["name"] => string(6) "橘子"
        ["total_sales"] => string(1) "0"
        ["cate_id"] => string(1) "4"
        ["img"] => string(77) "http://192.168.0.100/github/itboye_sunsun_php/index.php/Api/Picture/index?id="
        ["price"] => string(3) "2.0"
      }
    }
 */
	private String count;
	private ArrayList<GoodsList> list;
	public String getCount() {
		return count;
	}
	public void setCount(String count) {
		this.count = count;
	}
	public ArrayList<GoodsList> getList() {
		return list;
	}
	public void setList(ArrayList<GoodsList> list) {
		this.list = list;
	}
	public static class GoodsList{
		private String id;
		private String name;
		private String total_sales;
		private String cate_id;
		private String img;
		private String price;
		public String getId() {
			return id;
		}
		public void setId(String id) {
			this.id = id;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public String getTotal_sales() {
			return total_sales;
		}
		public void setTotal_sales(String total_sales) {
			this.total_sales = total_sales;
		}
		public String getCate_id() {
			return cate_id;
		}
		public void setCate_id(String cate_id) {
			this.cate_id = cate_id;
		}
		public String getImg() {
			return img;
		}
		public void setImg(String img) {
			this.img = img;
		}
		public String getPrice() {
			return price;
		}
		public void setPrice(String price) {
			this.price = price;
		}
	}
}
